<table border="1">
	<th>Order</th>
	<th>ReceiveDate</th>
	<th>Receiver</th>
	<th>DeliverDate</th>
	<th>Deliverer</th>
	<th>Customer</th>
	<th>Payment</th>
	<th>Status</th>
	<th>Action</th>
	
	
	<{foreach from=$ordersList item=phantu}>
		<tr> 
			<td> <{$phantu.ord_id}> </td>
			<td> <{$phantu.ord_receivedate}> </td>		
			<td> <{$phantu.emp_name}> </td>		
			<td> <{$phantu.ord_issuedate}> </td>	
			<td> <{$phantu.emp_name}> </td>							
			<td> <{$phantu.cus_firstname}> </td>		
			<td> <{$phantu.pay_method}> </td>		
			<td> <{$phantu.ord_status}></td>
			<td> 
				<a href="<{$smarty.const.APPLICATION_URL}>
					orders/editForm/<{$phantu.ord_id}>">					
					edit 
				</a>
				
				<{if $phantu.ord_status==1}>
					<a href="<{$smarty.const.APPLICATION_URL}>orders/inactive/
					<{$phantu.ord_id}>">					
							Inactive					
					</a> 
				<{else}>
					<a href="<{$smarty.const.APPLICATION_URL}>
					orders/active/<{$phantu.ord_id}>">					
							Active					
					</a> 
				<{/if}>
			</td>	
			
		</tr>
	<{/foreach}>
</table>